<?php
if(isset($mess_succ) && $mess_succ!="") {
    echo "<div class='mess_succ'>";
    echo    "<ul>";
    echo        "<li>$mess_succ</li>";
    echo    "</ul>";
    echo "</div>";
}
?>
<div style="margin-top: 10px; padding: 10px; width: 100px; text-align: center;" class="button"><a style="display: block;" href="<?php echo base_url(); ?>admin_combo/ability/search">Tìm kiếm</a></div>
<div align="center">
    <div id="recorddata">
        <table>
            <tr>
                <td class="title">Stt</td>
                <td class="title">Nhà Cung Cấp</td>
                <td class="title">Sản phẩm</td>
                <td class="title">Hình SP</td>
                <td class="title">Đơn giá</td>
                <td class="title">Ghi Chú</td>
                <td class="title">Edit</td>
                <td class="title">Del</td>
            </tr>
            <?php
                if($info != "empty") {
                    $stt=0;
                    foreach($info as $item) {
                        $stt++;
                        echo "<tr>";
                        echo    "<td>$stt</td>";
                        echo    "<td>$item[prov_name]</td>";
                        echo    "<td>$item[pro_title]</td>";
                        echo    "<td><img width='50' height='50' src='".base_url()."uploads/product_main/".$item["pro_img"]."' /></td>";
                        echo    "<td>$item[ability_unit_price]</td>";
                        echo    "<td>$item[ability_note]</td>";
                        echo    "<td class='action edit'><a href='".base_url()."admin_combo/ability/edit/$item[ability_id]' id='edit_$item[ability_id]'><strong>Edit</strong></a></td>";
                        echo    "<td class='action del'><a href='".base_url()."admin_combo/ability/del/$item[ability_id]' id='del_$item[ability_id]' 
                                    onclick='return confirm_delete(\"Bạn có chắc chắn muốn xóa?\");'><strong>Del</strong></a></td>";
                        echo "</tr>";
                    }
                }else
                    echo "<tr><td colspan='8'><font style='color: #99CC00; font-weight: bold;'>$info</font></td></tr>"
            ?>
        </table>
    </div>
<?php
    echo $this->pagination->create_links();
?>
</div>

